﻿// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");

// 客户端只依赖接口，不知道背后是代理
IUserService userService = new UserServiceProxy();

try
{
  userService.DeleteUser(123);
}
catch (Exception ex)
{
  Console.WriteLine($"错误: {ex.Message}");
}